//
//  HJTabbar.h
//  KaiChat
//
//  Created by lx on 2023/11/18.
//

#import <UIKit/UIKit.h>
#import "HJUnReadView.h"

NS_ASSUME_NONNULL_BEGIN


@class HJTabBarButton, HJTabBarContentView;

@protocol HJTabBarContentViewDelegate <NSObject>

@optional

- (void)tabBar:(HJTabBarContentView *)tabBar didSelectButton:(HJTabBarButton *)button index:(NSInteger)index;


@end

@interface HJTabBarButton: UIControl

@property (nonatomic, assign) NSInteger badgeValue;
@property (nonatomic, weak, readonly) UIImageView *imageView;
@property (nonatomic, strong, readonly) HJUnReadView *unReadView;


@end

@interface HJTabBarContentView : UIView

@property (nonatomic, weak) id <HJTabBarContentViewDelegate> delegate;
- (HJTabBarContentView *)initWithDatas:(NSArray *)datas;
- (void)selectIndex:(NSInteger)index;
- (HJTabBarButton *)buttonWithIndex:(NSInteger)index;


@end

NS_ASSUME_NONNULL_END
